<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
%>
<SCRIPT LANGUAGE="JavaScript">QDevelop_Application_Domain = '<%=path%>';</SCRIPT>
<script type="text/javascript" src="<%=path%>/lib/jquery/js/jquery-1.3.2.min.js"></script>
<link rel="StyleSheet" href="<%=path%>/lib/dtree/dtree.css" type="text/css" />
<script type="text/javascript" src="<%=path%>/lib/dtree/dtree.js"></script>
<TABLE>
<TR>
	<TD>
		<div class="dtree">
		<SCRIPT LANGUAGE="JavaScript">
			var type = '<s:property value="#parameters.type"/>';
			// roleCache['<s:property value="ID"/>']='<s:property value="NAME"/>';
			//var roleCache = {};
			mytree = new dTree('mytree');
			if(type=='radio')
				mytree.config.useRadio = true; 
			else
				mytree.config.useCheckbox = true; 					
			<s:iterator value="rb.resultList" id="m" status="cust_stat">  
				 mytree.add(<s:property value="ID"/>,<s:property value="PID"/>,'<s:property value="NAME"/>','#','<s:property value="INFO"/>');	
			</s:iterator> 
			document.write(mytree);
		</SCRIPT>
		</div>
	</TD>
</TR>
</TABLE>
<script type="text/javascript" src="<%=path%>/lib/dtree.utils.js"></script>

